package com.soft.mainsite.module.wx.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.soft.mainsite.common.annotation.ExcelField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author: hjm
 * @Date: 2021/1/1 20:00
 * Stay hungry,stay foolish!
 */
@Data
public class WeiXinUser implements Serializable {

    @ExcelField(value = "编号")
    private Integer id;
    @ExcelField(value = "微信openId")
    private String openId;
    @ExcelField(value = "微信昵称")
    private String nickName;
    @ExcelField(value = "性别，1男，2女，0其他")
    private String gender;
    @ExcelField(value = "语言")
    private String language;
    @ExcelField(value = "城市")
    private String city;
    @ExcelField(value = "省份")
    private String province;
    @ExcelField(value = "国家")
    private String country;
    @ExcelField(value = "用户头像")
    private String avatarUrl;
    @ExcelField(value = "微信手机号")
    private String phone;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelField(value = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelField(value = "修改时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @ExcelField(value = "微信用户状态, 1 正常, -1 已删除")
    private Integer userState;

}
